package org.example.servicestudent.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.model.student.bean.Task;
import org.example.servicestudent.mapper.TaskMapper;
import org.example.servicestudent.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements TaskService {
    @Autowired
    private TaskMapper taskMapper;


    @Override
    public List<Task> getList(Integer majorId) {
        return taskMapper.selectList(new QueryWrapper<Task>().eq("major_id", majorId));
    }
}
